<?php

//namespace Login\View;

class PageView{
	
	private $styleSheet = array();
	private $script = array();	
	
	public function AddStyleSheet($href) {
    	$this->styleSheet = "<link rel='StyleSheet' href='$href' type='text/css' />";
  	}
	public function AddScript($src){
		$this->script = "<script type=\"text/javascript\" src=\"$src\"></script>";
	}
	public function GetHTML($title, $body)
	{
		$html = "<!DOCTYPE html>
					<html lang=\"sv\">
					<head>
    					<meta charset=\"utf-8\">
    					<title>$title</title>
    					$this->styleSheet
					</head>
					<body>
						<div id=\"content\">
						$body
						</div>
						<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js\"></script>
						$this->script
					</body>
					</html>";
    
    	return $html;
	}	
}